-- GENERATED SPELL FOR [Magram Mauler] --


function spell0_4645(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_4645', 553, 1)
end

function Sorts_4645(pUnit, Event)
local choix_sorts_4645 = math.random(0, 0)
if choix_sorts_4645 == 0 then
pUnit:RegisterEvent('spell0_4645', 1, 1)
end
end

function mob4645_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4645', math.random(1500, 3000), 1)
end

function mob4645_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4645_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4645_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4645, 1, 'mob4645_Action')
RegisterUnitEvent(4645, 2, 'mob4645_Leave')
RegisterUnitEvent(4645, 3, 'mob4645_Kill')
RegisterUnitEvent(4645, 4, 'mob4645_Die')
